package com.tywj.panda.user.provider

import android.app.Activity
import com.tywj.panda.customer.common.provider.IUserService
import com.tywj.panda.user.route.UserRoute
import com.tywj.lib.core.common.view.BaseFragment
import com.tywj.lib.route.Route
import com.tywj.lib.route.RouteNavigation


/**
 * @desc 我的组件导航
 * @author June Yang
 * @date 2020/5/8
 */

@Route(path = UserRoute.USER_SERVICE)
class UserServiceImpl : IUserService {

    override fun getUserFragment(activity: Activity): BaseFragment {
        return UserRoute.getUserFragment(activity)
    }

    override fun toDetails(orderNo: String): RouteNavigation {
        return UserRoute.toOrderDetails(orderNo)
    }
}